HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //lib/google-cloud-sdk/lib/surface/iam/service_accounts/undelete.yaml
- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: Undelete a service account for a project.
    description: |
      Undelete a service account for a project.

      If the service account does not exist, this command returns a `PERMISSION_DENIED` error.
    examples: |
      The following command undeletes a service account with unique id
      `103271949540120710052`:

        $ {command} 103271949540120710052

  arguments:
    params:
    - arg_name: account_id
      api_field: name
      required: true
      is_positional: true
      help_text: |
          The deleted service account's unique ID must be provided when using the undelete command.
          Unique IDs are a 21 digit number, such as 103271949540120710052.
      processor: googlecloudsdk.command_lib.iam.hooks:CreateFullServiceAccountNameFromId
  request:
    collection: iam.projects.serviceAccounts
    disable_resource_check: true
    method: undelete